#include "BoomData.h"




void BoomData::initSprite()
{
	sprites = new Sprites(rect);
	sprites->addSprite(_STATE_MAP_STAGE3_BOOM_1, _ID_MAP_STAGE3_BOOM_1, 10);
	sprites->setState(_STATE_MAP_STAGE3_BOOM_1);
}

BoomData::BoomData(int id, int type, double x, double y)
{
	this->id = id; 
	this->type = type;
	this->rect = new Rect(x, y, _OBS_BOOM_3_HEIGHT, _OBS_BOOM_3_WIDTH);
	this->rect->Vx = this->rect->Vy = 0;

	this->initData();
}

void BoomData::initSpriteHandler(LPD3DXSPRITE spritehandler)
{
	sprites->initSpriteHandler(spritehandler);
}

void BoomData::initData()
{
	this->initSprite();
}

BoomData::~BoomData()
{

}
